package com.kqb.controller;

import com.kqb.common.domain.AjaxResult;
import com.kqb.pojo.ErpSalesOrder;
import com.kqb.service.IErpSalesOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杉果树皮
 * @date 2025/3/6 15:05
 * @description:
 */
@RestController
@RequestMapping("/api")
@Api(tags = "销售订单")
public class ErpSalesOrderController {

    @Autowired
    private IErpSalesOrderService iErpSalesOrderService;

    @PostMapping("/salesOrder")
    @ApiOperation("保存销售订单")
    public AjaxResult save(@RequestBody ErpSalesOrder erpSalesOrder) {
        return iErpSalesOrderService.save(erpSalesOrder);
    }
}
